package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**入库记录类*/
@Data
@ApiModel(value = "入库记录类")
@TableName("t_inrecord")
public class InRecordBean {
    /**入库记录编号*/
    @ApiModelProperty(hidden = true)
    @TableId(value = "pk_inRecordId",type = IdType.AUTO)
    private Integer id;
    /**商品编号*/
    @ApiModelProperty(value = "商品编号")
    @TableField("fk_goodsId")
    private Integer goodsId;
    /**入库数量*/
    @ApiModelProperty(value = "入库数量")
    @TableField("ir_num")
    private Integer num;
    /**入库时间*/
    @ApiModelProperty(value = "入库时间")
    @TableField("ir_date")
    private LocalDate createDate = LocalDate.now();
    /**标书编号*/
    @ApiModelProperty(value = "标书编号")
    @TableField("fk_biaoShuId")
    private Integer biaoShuId;

    public InRecordBean() {
    }

    public InRecordBean(Integer goodsId, Integer num, LocalDate createDate, Integer biaoShuId) {
        this.goodsId = goodsId;
        this.num = num;
        this.createDate = createDate;
        this.biaoShuId = biaoShuId;
    }

    @Override
    public String toString() {
        return "\nInRecordBean{" +
                "id=" + id +
                ", goodsId=" + goodsId +
                ", num=" + num +
                ", createDate=" + createDate +
                ", biaoShuId=" + biaoShuId +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public LocalDate getCreateDate() {
        return createDate;
    }

    public void setCreateDate(LocalDate createDate) {
        this.createDate = createDate;
    }

    public Integer getBiaoShuId() {
        return biaoShuId;
    }

    public void setBiaoShuId(Integer biaoShuId) {
        this.biaoShuId = biaoShuId;
    }
}
